//本程序用来算你的工资
#include<stdio.h>
int main(void)
{
    const int RATE=50;//一个小时的工资为50元
    const int STANDARD=40;// 每个月的基本工作小时
    double pay=0.0;
    int hours;
    

    printf("please enter you work hours:");
    scanf("%d",&hours);

    if (hours>STANDARD)
    {
        pay=hours*RATE+(hours-STANDARD)*(RATE*2);
    }
    else
    {
        pay=hours*RATE;
    }

    printf("Your salary:%f",pay);

    return 0;
    


    
}
